﻿using Microsoft.Xna.Framework;
using PoolGame2.Assets;

namespace PoolGame2.Physics
{
    class BallPocketCollision : Collision
    {
        public BallPocketCollision(Ball a, Pocket b, float collideTime)
        {
            this.a = a;
            this.b = b;
            this.collisionTime = collideTime;
        }

        public BallPocketCollision(Ball a, Pocket b, float collideTime, int val)
            : this(a, b, collideTime)
        {
            this.value = val;
        }

        public override void ResolveCollision(bool playSound)
        {
            if (playSound)
            {
                //PoolGame.audioDBManger.PlaySoundEffect(SoundEffectType.POCKET_BALL);
            }
        }

        public override Vector3 GetCollisionPoint()
        {
            return b.getPosition();
        }
    }
}
